The Slider Component > FSlider.setSliderProperties() |
FSlider.setSliderProperties()
Availability
Flash Player 6.
Usage
mySlider_sld.setSliderProperties (min,
max)
Parameters
min An integer specifying the minimum value of the slider.
max An integer specifying the maximum value of the slider.
Returns
Nothing
Description
Allows you to set the range of values for the slider. If the minimum is greater
than the maximum then the properties will not be changed. The minimum value
is represented by the slider when the thumb control is all the way to the left
(horizontal) or bottom (vertical). The maximum value
is represented by the slider when the thumb control is all the way to the right
(horizontal) or top (vertical).
Example
The slider_getMaxValue.fla example file contains an example of using this method.
The following code sets the range of values for the slider and then traces the min and max values.
mySlider_sld.setSliderProperties(0,100); trace( "Min Value: " + mySlider_sld.getMinValue() );//traces 0 trace( "Max Value: " + mySlider_sld.getMaxValue() );//traces 100
See also